package com.lyf.scm.plan.domain.remote.promotion;

import com.lyf.scm.plan.domain.remote.promotion.dto.SinglePromotionItemDTO;
import com.rome.arch.core.clientobject.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 营销中心服务
 *
 * @author 李兵兵
 * @date 2020/09/27
 */
@FeignClient(name = "scm-purchase-service")
public interface PromotionCoreRemote {

    /**
     * 查询该渠道所有单一促销类的商品
     *
     * @param channelCodes 信道编码
     * @return {@link Response<List<SinglePromotionItemDTO>>}
     */
    @PostMapping("/pc/activity/v1/singlePromotion/items")
    Response<List<SinglePromotionItemDTO>> singlePromotion(@RequestBody List<String> channelCodes);
}
